package com.liliudong.makabaka.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liliudong.makabaka.sys.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liudo
 * @description 针对表【sys_role(系统角色)】的数据库操作Mapper
 * @createDate 2023-09-23 16:38:57
 * @Entity com.liliudong.makabaka.sys.entity.SysRole
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 按用户id选择角色名称列表
     *
     * @param userId 登录id
     * @return {@link List}<{@link String}>
     */
    List<String> selectRoleCodeListByUserId(Object userId);
}




